﻿<%@ Page Language="C#" MasterPageFile="~/WebManager/manager.Master" AutoEventWireup="true" CodeBehind="SetPortal.aspx.cs" Inherits="WebManager.Function.SetPortal" Title="Untitled Page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div align="right">
        <asp:Button ID="Save" runat="server" Text="保存" OnClick="Save_Click" />
        &nbsp;&nbsp;&nbsp;
        <asp:Button ID="Cancel" runat="server" Text="取消" OnClick="Cancel_Click" />
        &nbsp;&nbsp;&nbsp;
    </div>
    <div>
         <div style="padding-left:20px">
         选择的文章标题为:&nbsp;&nbsp;<asp:Literal ID="DocTitle" runat="server"></asp:Literal>
         <br />
           <br />
          请选择要添加近的Portal：<asp:DropDownList ID="PortalFilter" Width="150px"  runat="server" AutoPostBack="true" OnSelectedIndexChanged="PortalFilter_SelectedIndexChanged">
          </asp:DropDownList>
          <br />         
          <asp:Literal ID="PortalDes" runat="server"></asp:Literal>
          <br />
          <br />
          <br />
          请选择展现方式：<br />
          <asp:RadioButtonList ID="Type" runat="server" RepeatDirection="Horizontal" 
                 AutoPostBack="True" onselectedindexchanged="Type_SelectedIndexChanged" 
                 style="margin-top: 0px" >
             <asp:ListItem Text="图片文章" Value="4"></asp:ListItem>
             <asp:ListItem Text="标题加粗并且有简介" Value="3"></asp:ListItem>
             <asp:ListItem Text="标题加粗且置顶" Value="2"></asp:ListItem>
             <asp:ListItem Text="固定置顶" Value="1"></asp:ListItem>
             <asp:ListItem Text="一般级别" Value="0"></asp:ListItem>
          </asp:RadioButtonList>   
          <br />          
          <div id="UploadImageDiv" runat="server" visible="false">
               <div style="float:left;width:200px">小图片(一般为几KB，长宽以4:3为好，
               比如100px*75px,必填项)<font color="red">*</font></div>
                <asp:Image ID="Image2"  runat="server" Height="75px" Width="100px" />
                <asp:FileUpload ID="FileUpload2" runat="server" />&nbsp;
                <asp:Button ID="Upload2" runat="server" Text="上传" onclick="Upload2_Click" />
                <br />
                <asp:Label ID="UploadStatusLabe2" runat="server"></asp:Label>
          </div>
          <div id="SummaryDiv" runat="server" visible="false">
             <asp:TextBox ID="Summary" runat="server" TextMode="MultiLine" Width="400px" Height="60px">
             </asp:TextBox>
             注:一般来说，简介在80到100字为适宜。
          </div>          
          <br />
          
          <br />      
          <div style="border:dashed 1px blue;width:auto;height:auto">
           一般来说，<b>图片文章</b>只有<font color="red">1</font>篇，<b>标题加粗并且有简介</b>只有<font color="red">1</font>篇，<b>标题加粗且置顶</b>(其与<b>标题加粗并且有简介</b>互斥)也只有<font color="red">1</font>篇。<br />
           <b>固定置顶</b>和<b>一般级别</b>没有限制。但起累加和不应超过文章的限度.<br />
           新文章将替换旧的文章。<br />           
          </div>
          </div>
          
    </div>
</asp:Content>
